const MyPromise = require('./MyPromise');

let promise = new MyPromise((resolve, reject) => {
	resolve('成功');
	// reject('失败');
});

promise
	.then(
		value => {
			console.log(value);
			return 100;
		},
		reason => {
			console.log(reason);
		}
	)
	.then(value => {
		console.log(value);
	});
